package cn.team11.smarteye.bean;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.Transient;

import java.util.List;

/**
 * Created by Yang on 2017/11/17.
 */

@Entity
public class AlarmMsgInfoBean {

    @Id
    Long _id;
    long create;//报警的创建时间, 如果 create 选项不存在, 则认为 create 与 time 参数的值相同
    @Index(unique = true)
    String aid;//报警记录的id
    long time;//报警时间，距离1970.1.1的毫秒
    String alarmDexSn;//报警的附加装置的SN号
    @Convert(columnType = String.class, converter = StringConverter.class)
    List<String> fid;//报警图片ID列表
    String bid;//设备的bid
    int type;//报警类型，3 代表单张图片， 4 代表多张图片，多张图片下载下来是zip包，需要先解压。 5，代表短视频
    @Convert(columnType = String.class, converter = StringConverter.class)
    List<String> pvid;//缩略图id列表
    @Transient
    boolean isSelected;
    boolean isMarkAsRead;
    String path;

    @Generated(hash = 834335755)
    public AlarmMsgInfoBean(Long _id, long create, String aid, long time,
            String alarmDexSn, List<String> fid, String bid, int type,
            List<String> pvid, boolean isMarkAsRead, String path) {
        this._id = _id;
        this.create = create;
        this.aid = aid;
        this.time = time;
        this.alarmDexSn = alarmDexSn;
        this.fid = fid;
        this.bid = bid;
        this.type = type;
        this.pvid = pvid;
        this.isMarkAsRead = isMarkAsRead;
        this.path = path;
    }

    @Generated(hash = 285349684)
    public AlarmMsgInfoBean() {
    }

    public Long get_id() {
        return _id;
    }

    public void set_id(Long _id) {
        this._id = _id;
    }

    public long getCreate() {
        return create;
    }

    public void setCreate(long create) {
        this.create = create;
    }

    public String getAid() {
        return aid;
    }

    public void setAid(String aid) {
        this.aid = aid;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public String getAlarmDexSn() {
        return alarmDexSn;
    }

    public void setAlarmDexSn(String alarmDexSn) {
        this.alarmDexSn = alarmDexSn;
    }

    public List<String> getFid() {
        return fid;
    }

    public void setFid(List<String> fid) {
        this.fid = fid;
    }

    public String getBid() {
        return bid;
    }

    public void setBid(String bid) {
        this.bid = bid;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public List<String> getPvid() {
        return pvid;
    }

    public void setPvid(List<String> pvid) {
        this.pvid = pvid;
    }

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }

    public boolean isMarkAsRead() {
        return isMarkAsRead;
    }

    public void setMarkAsRead(boolean markAsRead) {
        isMarkAsRead = markAsRead;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public boolean getIsMarkAsRead() {
        return this.isMarkAsRead;
    }

    public void setIsMarkAsRead(boolean isMarkAsRead) {
        this.isMarkAsRead = isMarkAsRead;
    }

}
